package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_activity_pic"
    ,catalog="zutuan_prot"
)
public class JujuActivityPic  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuActivityPic";
	public static final String TABLE_NAME="juju_activity_pic";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_activityid = "activityid"; 
	public static final String P_picPath = "picPath"; 
	public static final String P_creater = "creater"; 
	public static final String P_createdatetime = "createdatetime"; 
	public static final String P_picName = "picName"; 
	public static final String P_deleflag = "deleflag"; 
	public static final String P_groupname = "groupname"; 
	public static final String P_organid = "organid"; 

     private String id;
     private String activityid;
     private String picPath;
     private String creater;
     private Date createdatetime;
     private String picName;
     private Integer deleflag;
     private String groupname;
     private String organid;

    public JujuActivityPic() {
    }
	
    public JujuActivityPic(String id) {
        this.id = id;
    }
    public JujuActivityPic(String id, String activityid, String picPath, String creater, Date createdatetime, String picName, Integer deleflag, String groupname, String organid) {
        this.id = id;
        this.activityid = activityid;
        this.picPath = picPath;
        this.creater = creater;
        this.createdatetime = createdatetime;
        this.picName = picName;
        this.deleflag = deleflag;
        this.groupname = groupname;
        this.organid = organid;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="ACTIVITYID", length=36)
    public String getActivityid() {
        return this.activityid;
    }
    
    public void setActivityid(String activityid) {
        this.activityid = activityid;
    }
    
    @Column(name="picPATH", length=10000)
    public String getPicPath() {
        return this.picPath;
    }
    
    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }
    
    @Column(name="CREATER", length=36)
    public String getCreater() {
        return this.creater;
    }
    
    public void setCreater(String creater) {
        this.creater = creater;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATEDATETIME", length=19)
    public Date getCreatedatetime() {
        return this.createdatetime;
    }
    
    public void setCreatedatetime(Date createdatetime) {
        this.createdatetime = createdatetime;
    }
    
    @Column(name="picNAME", length=36)
    public String getPicName() {
        return this.picName;
    }
    
    public void setPicName(String picName) {
        this.picName = picName;
    }
    
    @Column(name="DELEFLAG")
    public Integer getDeleflag() {
        return this.deleflag;
    }
    
    public void setDeleflag(Integer deleflag) {
        this.deleflag = deleflag;
    }
    
    @Column(name="groupname", length=200)
    public String getGroupname() {
        return this.groupname;
    }
    
    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }
    
    @Column(name="organid", length=36)
    public String getOrganid() {
        return this.organid;
    }
    
    public void setOrganid(String organid) {
        this.organid = organid;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


